<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,  
                initial-scale=1.0" />
</head>

<body>
    <div style="width:700px; height:500px;">
        <center>
            <h3 style="color:black;"></h3>
        </center>

        <svg width="600" height="450"></svg>
    </div>
    <script src="https://d3js.org/d3.v4.js"></script>
    <script src="https://d3js.org/d3-geo-projection.v2.min.js">
    </script>
    <script>
        var svg = d3.select("svg"),
            width = +svg.attr("width"),
            height = +svg.attr("height");

        var gfg = d3
            .geoMercator()
            .scale(width / 2.5 / Math.PI)
            .rotate([0, 0])
            .center([0, 0])
            .translate([width / 2, height / 2]);

        d3.json(
            "https://raw.githubusercontent.com/janasayantan/datageojson/master/world.json",
            function (data) {
                svg.append("g").selectAll(
                    "path").data(data.features).enter().append(
                        "path").attr("fill", "red").attr(
                            "d", d3.geoPath().projection(gfg)).style(
                                "stroke", "#ffff");
            }); 
    </script>
</body>

</html>